package com.xiaoxx.model.entity.chat;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xiaoxx.common.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author HX
 * @since 2023-07-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_chat_content")
@ApiModel(value = "ChatContent对象", description = "ChatContent")
public class ChatContent extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户id")
    @TableField("user_id")
    private String userId;

    @ApiModelProperty(value = "聊天菜单id")
    @TableField("chat_menu_id")
    private String chatMenuId;

    @ApiModelProperty(value = "回答消耗tokens")
    @TableField("reply_tokens")
    private Integer replyTokens;

    @ApiModelProperty(value = "回答问题")
    @TableField("reply_content")
    private String replyContent;

    @ApiModelProperty(value = "提问消耗tokens")
    @TableField("ask_tokens")
    private Integer askTokens;

    @ApiModelProperty(value = "提问问题")
    @TableField("ask_content")
    private String askContent;

    @ApiModelProperty(value = "0-聊天 1-图片")
    @TableField("content_type")
    private Integer contentType=0;

}
